package com.itstu.service.impl;

import com.itstu.mapper.UserMapper;
import com.itstu.pojo.User;
import com.itstu.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author 梁卓
 * @Version 1.0
 * @ClassName UserServiceImpl
 * @Description TODO
 * @Date 2024/09/29 22:34
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    /**
     * 获取用户列表
     * @return 用户列表
     */
    @Override
    public String getUserList() {
        return null;
    }

    /**
     * 根据用户名查询用户信息
     * @param username 用户名
     * @return 结果
     */
    @Override
    public User getUserByUserName(String username) {
        return userMapper.getUserByUserName(username);
    }


}
